package com.danco.training.bookshop.entity;


import java.io.Serializable;
import java.util.Date;

import com.danco.training.bookshop.service.storage.BookStorageService;

public class Book implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3704807433024463195L;
	private int id;
	private String title;
	private String author;
	private Date publicationDate;
	private double price;
	private boolean available;
	private int quantity;
	private Date receiptDate;
	
	public Book(){
		
	}

	public Book(int id, String title, String author, Date publicationDate, double price, Date receiptDate) {
		
		this.id = id;
		this.title = title;
		this.author = author;
		this.publicationDate = publicationDate;
		this.price = price;
		this.quantity = 0;
		this.receiptDate = receiptDate;

	}

	public Book(int id, String title, String author, Date date) {
		this.id = id;
		this.title = title;
		this.author = author;
		this.publicationDate = date;
		this.price = 0;
		this.quantity = 0;
	}

	public Book(int id, String title) {
		this.id = id;
		this.title = title;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getPublicationDate() {
		return publicationDate;
	}

	public void setPublicationDate(Date date) {
		this.publicationDate = date;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public Date getReceiptDate() {
		return receiptDate;
	}

	public void setReceiptDate(Date receiptDate) {
		this.receiptDate = receiptDate;
	}

	public boolean isAvailable() {
		return available;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

	

}
